import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';

// 全部引入。文件较大，资源浪费
// import Antd from "ant-design-vue";
// import "ant-design-vue/dist/antd.less";
// Vue.use(Antd);

// 单个引入，文件较小，多个组件引入繁琐
// import Button from "ant-design-vue/lib/button";
// import "ant-design-vue/lib/button/style";
// Vue.use(Button);

// 添加babel-plugin-import插件, 按需引入
import { Button, Layout, Menu, Icon } from 'ant-design-vue';
Vue.use(Button);
Vue.use(Layout);
Vue.use(Menu);
Vue.use(Icon);

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app');
